package com.telit.firecommand.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.telit.firecommand.entity.CommSpreadAnalysis;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface CommSpreadAnalysisDao extends BaseMapper<CommSpreadAnalysis> {

    /**
     * 分页条件蔓延分析表信息
     * @param spreadAnalysisIPage
     * @param spreadAnalysis
     * @return
     */
    IPage<CommSpreadAnalysis> selectPageByCondition(@Param("spreadAnalysisIPage") IPage<CommSpreadAnalysis> spreadAnalysisIPage, @Param("spreadAnalysis") CommSpreadAnalysis spreadAnalysis);

    /**
     * 无分页条件查询蔓延分析表信息
     * @param spreadAnalysis
     * @return
     */
    List<CommSpreadAnalysis> selectByConditionNoPage(@Param("spreadAnalysis") CommSpreadAnalysis spreadAnalysis);

    /**
     * 根据火情ID查询蔓延分析信息
     * @return
     */
    CommSpreadAnalysis selectInfoByFireId(Long fireId);
}